// 千岛湖中心坐标
const QDH_CENTER = [29.5906, 119.0336];
const MIN_ZOOM = 10;
const MAX_ZOOM = 16;

// 初始化地图
const map = L.map('map', {
    center: QDH_CENTER,
    zoom: 12,
    minZoom: MIN_ZOOM,
    maxZoom: MAX_ZOOM
});

// 配置离线瓦片图层
L.tileLayer('tiles/{z}/{x}/{y}.png', {
    attribution: '© OpenStreetMap contributors',
    tileSize: 256,
    minZoom: MIN_ZOOM,
    maxZoom: MAX_ZOOM
}).addTo(map);

// 添加比例尺
L.control.scale({
    imperial: false,
    metric: true
}).addTo(map); 